<?exit?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=$_G['charset']" />
		<title>$lang['pm']</title>
		<link type="text/css" rel="stylesheet" href="templates/site/default/common.css" />
		<script type="text/javascript" src="static/js/jquery.js"></script>
		<script charset="utf-8" type="text/javascript" src="static/js/common.js"></script>
		<style>
		.pm h1 {
			color:#333;
			font-size:1.13em;
			height:32px;
			line-height:32px;
			padding-left:10px;
		}
		.pm #pmcontent {
			width:480px; margin:auto;
		}
		#pmcontent{
			margin:10px;
			width:500px;
		}
		
		.bbda {
			border-bottom:1px dashed #E6E7E1;
		}
		
		
		.xld {}
			.xld dt { padding: 8px 0 5px; font-weight: 700; }
			.xld dd { margin-bottom: 8px; }
			/* text with thumbnail image ( must with the additional class .cl ) */
			.xld .m { float: left; margin: 8px 8px 10px 0; }
			.xld .atc { float: right; margin-left: 20px; }
				.xld .atc img { padding: 2px; max-width: 80px; max-height: 80px; border: 1px solid #CCC; }
					.ie6 .xld .atc img { width: expression(this.width > 80 && this.width>=this.height ? 80 : true); height: expression(this.height > 80 && this.width<=this.height ? 80 : true); }
			.xld a.d, .xl a.d, .attc a.d, .c a.d, .sinf a.d { float: right; width: 20px; height: 20px; overflow: hidden; line-height: 100px; background: url(static/image/op.png) no-repeat 0 -2px; }
				.attc a.d { float: left; }
			.xld a.d:hover, .xl a.d:hover, .attc a.d:hover, .c a.d:hover, .sinf a.d:hover { background-position: 0 -22px; }
			.xld a.b { background-position: 0 -40px; }
				.xld a.b:hover { background-position: 0 -60px; }
				
		.xlda dl { padding-left: 65px; }
		.xlda .m { display: inline; margin: 8px 0 8px -65px; }
		.xlda .avt img { display: block; }
		.xlda dd img { max-width: 550px; }
			* html .xlda dd img { width: expression(this.width > 550 ? 550 : true); }
		.xlda dd a { color:#369; }
		.xlda dd .hot { color: #F00; }
		
		
	</style>
	</head>

	<body>
		<div id="append_parent"></div>
		<div id="container" class="pm">
			<!--{if $send_result=='notlogin'}-->
			<div id="pmcontent">$lang['please_login']</div>
			<!--{elseif $send_result=='notallowtomyself'}-->
			<div id="pmcontent">$lang['pm_yourself']</div>
			<!--{elseif $send_result > 0}-->
			<div id="pmcontent">$lang['pm_sendok']</div>
			<!--{elseif $act=='sendbox'}-->
			<h1>$lang['pm_sendto'] $username </h1>

			<form id="postpmform" action="pm.php?act=send" name="postpmform" method="post">
				<div id="pmcontent" class="pmcontent noside" style="padding-bottom: 30px;">
					<table cellspacing="0" cellpadding="0" border="0" width="100%" class="newpm">
						<tbody>
							<tr>
								<th>{$lang['pm_title']}{$lang['colon']}</th>
								<td><input type="text" value="" maxlength="75" size="65" name="subject" class="pt" /></td>
							</tr>
							<tr>
								<th class="ptm">{$lang['pm_message']}{$lang['colon']}</th>
								<td class="ptm">
									<textarea name="message" style="width: 350px; height: 120px;" cols="10" rows="15" id="pm_textarea" class="px"></textarea>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<p class="m_c_o pns">
					<input type="hidden" value="{$uid}" size="65" name="msgto" class="ucinput"/>
					<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
					<button class="pn pnc" value="true" id="fwin_dialog_submit" name="pmsubmit" type="submit"><strong>$lang['send']</strong></button>
				</p>
			</form>

			<!--{elseif $act == 'list'}-->
			<div class="xld xlda">
				<!--{loop $pm_notices['data'] $pm}-->
				<!--{eval
				$pm['date'] = date('Y-m-d H:i:s', $pm['dateline']);
				}-->
				<dl class="bbda cl" id="pmlist_{$pm['dateline']}">
					<dd class="m avt">
					<a href="javascript:;"><img src="static/image/systempm.gif" /></a>
					</dd>
					<dt>
					<a title="{$lang['delete']}" id="a_delete_{$pm['dateline']}" href="?act=del&msgtype=systempm&pmid=$pm['pmid']&inajax=1" class="d">{$lang['delete']}</a>
					<span class="xg1 xw0"><!--{$pm['date']}--></span>
					</dt>
					<dd {if $pm['new']} class="xw1"{/if}>$pm['subject']</dd>
					<dd class="pns">
					<a class="xi2" href="?act=view&msgtype=systempm&pmid=$pm['pmid']&inajax=1">{$lang['see_details']}</a>
					</dd>
				</dl>
				<!--{/loop}-->
			</div>
			<div class="content" style="width:510px; overflow:hidden;height:45px;">$multi</div>
			<!--{elseif $act=='view'}-->
			<div class="xld xlda" id="pm_ul">
				<dl id="pmlist_2151852078" class="cl bbda">
					<dd class="m avt">
					<a href="javascript:;"><img src="static/image/systempm.gif" /></a>
					</dd>
					<dt>
					<span class="xg1 xw0"><!--{$pm['date']}--></span>
					</dt>
					<dd>$pm['subject']<br />
					<br />
					$pm['message']</dd>
				</dl>
			</div>
			<!--{/if}-->
		</div>
	</body>
</html>
